import request from '@/utils/request'

const imListApi = {
  // 获取厂商的基本信息
  getImlist (data) {
    return request({
      url: '/imlist/getImlist',
      method: 'get',
      params: data
    })
  },
  // 获得某子展位
  getImisShowByIMshowId (data) {
    return request({
      url: '/imlist/getImisShowByIMshowId',
      method: 'get',
      params: data
    })
  },
  // 修改厂商
  updateImlist (data) {
    return request({
      url: '/imlist/updateImlist',
      method: 'post',
      data
    })
  },
  // 查询厂商的基础信息
  companyInfo (data) {
    return request({
      url: '/imlist/company/info',
      method: 'get',
      params: data
    })
  },
  // 提交展位名称修改申请
  updateImcom (data) {
    return request({
      url: '/imcom/updateImcom',
      method: 'post',
      data
    })
  },
  // 提交展位简称修改申请
  updateImcomAbb (data) {
    return request({
      url: '/imcom/updateImcomAbb',
      method: 'post',
      data
    })
  },
  // 获取展位名称修改申请状态信息
  getImcomState (data) {
    return request({
      url: '/imcom/getImcomState',
      method: 'get',
      params: data
    })
  },
  // 获取展位简称修改申请状态信息
  getImcomStateAbb (data) {
    return request({
      url: '/imcom/getImcomStateAbb',
      method: 'get',
      params: data
    })
  },
  // 查询厂商角色列表
  queryAccountRoleList (data) {
    return request({
      url: '/boss/queryAccountRoleList',
      method: 'get',
      params: data
    })
  },
  // 获取验证码
  getUserCode (data) {
    return request({
      url: '/login/getUserCode',
      method: 'get',
      params: data
    })
  },
  // 修改超级管理员手机号
  updateSuperBossMobile (data) {
    return request({
      url: '/boss/updateSuperBossMobile',
      method: 'post',
      data
    })
  },
  // 修改手机号、密码、邮箱接口
  modifyBaseInfo (data) {
    return request({
      url: '/login/modifyBaseInfo',
      method: 'get',
      params: data
    })
  },
  // 新增(多个)主营产品
  addMainproducts (data) {
    return request({
      url: '/mainproducts/addMainproducts',
      method: 'post',
      data
    })
  },
  // 删除主营产品信息(根据厂商id)
  deleteMainproducts (data) {
    return request({
      url: '/mainproducts/deleteMainproducts',
      method: 'get',
      params: data
    })
  },
  // 获取厂商的主攻行业
  getCompanyImMainindustry (data) {
    return request({
      url: '/mainindustry/getCompanyImMainindustry',
      method: 'get',
      params: data
    })
  },
  // 获取主营产品信息列表
  getMainproductsList (data) {
    return request({
      url: '/mainproducts/getMainproductsList',
      method: 'get',
      params: data
    })
  },
  // 获取所有主攻行业
  getImIndustry (data) {
    return request({
      url: '/mainindustry/getImIndustry',
      method: 'get',
      params: data
    })
  },
  // 修改主攻行业(批量)
  updateMainIndustry (data) {
    return request({
      url: '/mainindustry/updateMainIndustry',
      method: 'post',
      data
    })
  },
  // 获取工商资质信息
  getBusinessQualification (data) {
    return request({
      url: '/qualification/getBusinessQualification',
      method: 'get',
      params: data
    })
  },
  // 修改工商资质
  updateBusinessQualification (data) {
    return request({
      url: '/qualification/updateBusinessQualification',
      method: 'post',
      data
    })
  }

}
export default imListApi
